'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/api/file/upload', controller.file.upload);
  router.get('/api/file/download/:id', controller.file.download);
};
